import request from '@/utils/request'

// 获取SkuList
export const reqSkuList = (page, limit) => request({ url: `/admin/product/list/${page}/${limit}`, method: 'get' })

// 上架
export const reqUpSale = (skuId) => request({ url: `/admin/product/onSale/${skuId}`, method: 'get' })

// 下架
export const reqDownSale = (skuId) => request({ url: `/admin/product/cancelSale/${skuId}`, method: 'get' })

// 获取Sku详情列表
export const reqSkuById= (skuId) => request({ url: `/admin/product/getSkuById/${skuId}`, method: 'get' })